import 'package:basic_common/common_exports.dart';
import 'package:basic_common/global_getx.dart';

class ProfileController extends GetxController {
  /// 统计数据
  final statisList = [
    {"title": "粉丝数", "num": "1000"},
    {"title": "签约人数", "num": "200"},
    {"title": "服务总量", "num": "100"},
    {"title": "服务评价", "num": "4.9"}
  ];
// 菜单功能数据
  final menuList = [
    {
      "icon": "assets/profile/icon_team.png",
      "title": "我的团队",
      "page": AppRoutes.myteam
    },
    {
      "icon": "assets/profile/icon_attend.png",
      "title": "我的关注",
      "page": AppRoutes.myAttention
    },
    {
      "icon": "assets/profile/icon_send.png",
      "title": "我的发布",
      "page": AppRoutes.myAttention
    },
    {
      "icon": "assets/profile/icon_commont.png",
      "title": "我的评价",
      "page": AppRoutes.evaluate
    }
  ];

  /// 设置菜单项
  final settingList = [
    {
      "icon": "assets/profile/icon_fuwu.png",
      "title": "我的处方",
      "page": AppRoutes.mypresclist
    },
    {
      "icon": "assets/profile/icon_default.png",
      "title": "常用语句设置",
      "page": AppRoutes.commonPhrases
    },
    {
      "icon": "assets/profile/icon_agree.png",
      "title": "意见反馈",
      "page": AppRoutes.feedback
    },
    {
      "icon": "assets/profile/icon_setting.png",
      "title": "设置",
      "page": AppRoutes.setting
    },
  ];

  @override
  void onInit() async {
    // 刷新数据关键

  await  globalGetx.getDrProfile();
    super.onInit();
  }
}
